//
//  TouchView.m
//  03-UIResponder
//
//  Created by mafeng on 16/7/18.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
 // 继承于 UIResponder
 // Appdelegate UIView UIViewController
 // 打印类名: [self class]
 //          [[self class] description]
 //         NSStringfromClass(self class)
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    NSLog(@"self.view = %@", self.nextResponder);
    NSLog(@"VC = %@", self.nextResponder.nextResponder);
    NSLog(@"UIWindow = %@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIApplication = %@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"Appdelegate = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
      NSLog(@"null = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
    //[super touchesBegan:touches withEvent:event];
    //NSLog(@"%@----%s", [self class], __FUNCTION__);
}
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
     // NSLog(@"%@----%s", [self class], __FUNCTION__);
}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
     //  NSLog(@"%@----%s", [self class], __FUNCTION__);
}

@end
